package com.zb_study.Homework05;

import com.sun.scenario.effect.impl.prism.PrImage;

public class factory {
    private static Horse horse = new Horse();

    private factory() {
    }

    public static Horse getHorse() {
        return new Horse();
    }
    public static Boat getBoat() {
        return new Boat();
    }
}
